package org.ala.tiktools.mybatis.interceptor;

/**
 * @author ala
 * @date 2025-01-10 17:39
 */
public class SortInterceptor {
    protected int sort;
    protected IAnnotationInterceptor interceptor;

    public static SortInterceptor build(IAnnotationInterceptor interceptor, int sort) {
        SortInterceptor si = new SortInterceptor();
        si.sort = sort;
        si.interceptor = interceptor;
        return si;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public IAnnotationInterceptor getInterceptor() {
        return interceptor;
    }

    public void setInterceptor(IAnnotationInterceptor interceptor) {
        this.interceptor = interceptor;
    }
}
